
import 'package:kugou/src/api_providers/sing_api_provider.dart';
import 'package:kugou/src/models/new_sing_rank.dart';
import 'package:kugou/src/bloc/base_bloc.dart';
import 'package:rxdart/rxdart.dart';

class NewSingRankBloc extends BaseBloc<NewSingRank>{
 Observable<NewSingRank> get newSingRank => fetcher.stream;
 getNewSingRank()async {
   SingApiProvider provider = SingApiProvider();
   NewSingRank rank = await provider.getNewSingRank();
   fetcher.sink.add(rank);
 }
}

final newSingRankBloc = NewSingRankBloc();